package com.web;

import java.io.InputStream;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class DownloadAction extends ActionSupport {

	private String downloadFile;
	
	
	public InputStream getInputStream(){
		return ServletActionContext.getServletContext().getResourceAsStream(downloadFile);
	}


	public String getDownloadFile() {
		return downloadFile;
	}


	public void setDownloadFile(String downloadFile) {
		System.out.println("========"+ downloadFile);
		this.downloadFile = downloadFile;
	}
	
	
}
